package com.jufanshare.myblog.common.dto;

/**
 * 作用：
 * 作者：Tiddler
 * 时间：2019/2/9 11：05
 * 类名： MyselfMsg
 **/
public class MyselfMsg {
    private String nikeName="大BUG";
    private String address="四川省-成都市";
    private String qq="173124552";
    private String zhiye="软件工程师";
    private String email="173124552@qq.com";
    private String gonzuoshi="聚繁工作室";
    private String blogName="聚繁分享";

    //使用静态内部类的方式实现完美单例模式
    private static class MyselfMsgHolder {
        private static final MyselfMsg INSTANCE = new MyselfMsg();
    }
    //构造函数私有
    private MyselfMsg (){

    }
    //通过getInstance方法获取单例类
    public static final MyselfMsg getInstance() {
        return MyselfMsgHolder.INSTANCE;
    }

    public String getNikeName() {
        return nikeName;
    }

    public String getAddress() {
        return address;
    }

    public String getQq() {
        return qq;
    }

    public String getZhiye() {
        return zhiye;
    }

    public String getEmail() {
        return email;
    }

    public String getGonzuoshi() {
        return gonzuoshi;
    }

    public String getBlogName() {
        return blogName;
    }
}
